package com.sghd.pojo.candy.rank;

/**
 * @author frank
 * @date 2019-01-17 15:25
 * @desc
 **/
public class RankItem {
    private long playerId;
    private String nickName;
    private int headIconId;
    private int pvpGrade;
    private float winRate;

    public static RankItem valueOf(long playerId, String nickName, int headIconId, int grade, float winRate) {
        RankItem rankItem = new RankItem();
        rankItem.playerId = playerId;
        rankItem.pvpGrade = grade;
        rankItem.winRate = winRate;
        rankItem.nickName = nickName;
        rankItem.headIconId = headIconId;
        return rankItem;
    }

    public int getPvpGrade() {
        return pvpGrade;
    }

    public void setPvpGrade(int pvpGrade) {
        this.pvpGrade = pvpGrade;
    }

    public long getPlayerId() {

        return playerId;
    }

    public void setPlayerId(long playerId) {
        this.playerId = playerId;
    }

    public float getWinRate() {
        return winRate;
    }

    public void setWinRate(float winRate) {
        this.winRate = winRate;
    }

    public int getHeadIconId() {
        return headIconId;
    }

    public void setHeadIconId(int headIconId) {
        this.headIconId = headIconId;
    }

    public String getNickName() {

        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public RankItem copy() {
        RankItem rankItem = new RankItem();
        rankItem.playerId = playerId;
        rankItem.headIconId = headIconId;
        rankItem.nickName = nickName;
        rankItem.winRate = winRate;
        rankItem.pvpGrade = pvpGrade;
        return rankItem;

    }
}
